package com.example.s14_jpa2.service;

import com.example.s14_jpa2.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IUserService
{
    // 增加
    public Boolean save(User u);

    public User findById(long id);

    // 查询
    public List<User> list();

    public Page<User> list(Pageable pageable);

    public User findByUsername(String username);

    void deleteById(Long id);
}
